package com.Humanities.checkcode.feignclient;

import com.Humanities.checkcode.model.XcUser;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class XcuserClientFactory implements FallbackFactory<XcuserClient> {
    @Override
    public XcuserClient create(Throwable cause) {
        return new XcuserClient() {
            @Override
            public XcUser findXcuserByPhone(String s1) {
                return null;
            }
        };
    }
}
